package com.xk.meeting.entity;

import java.sql.SQLOutput;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;

public class Apply {
    private int id;
    private int uid;
    private int mid;
    private Date starttime;
    private Date endtime;
    private String title;
    private String applypeo;
    private String remarks;
    private int status;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getUid() {
        return uid;
    }

    public void setUid(int uid) {
        this.uid = uid;
    }

    public int getMid() {
        return mid;
    }

    public void setMid(int mid) {
        this.mid = mid;
    }

    public Date getStarttime() {
        return starttime;
    }
    public void setStarttime(Date starttime){
        this.starttime = starttime;
    }
    /*public void setStarttime(String starttime) {
        String datetime = starttime.replace("T"," ");
        SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd hh:mm");
        try {
            this.starttime = sdf.parse(datetime);
        } catch (ParseException e) {
            e.printStackTrace();
        }
    }*/

    public Date getEndtime() {
        return endtime;
    }

    public void setEndtime(Date endtime){
        this.endtime = endtime;
    }
    /*public void setEndtime(String endtime) {
        String datetime = endtime.replace("T"," ");
        SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd hh:mm");
        try {
            this.endtime = sdf.parse(datetime);
        } catch (ParseException e) {
            e.printStackTrace();
        }
    }*/
    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getApplypeo() {
        return applypeo;
    }

    public void setApplypeo(String applypeo) {
        this.applypeo = applypeo;
    }

    public String getRemarks() {
        return remarks;
    }

    public void setRemarks(String remarks) {
        this.remarks = remarks;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    @Override
    public String toString() {
        return "Apply{" +
                "id=" + id +
                ", uid=" + uid +
                ", mid=" + mid +
                ", starttime=" + starttime +
                ", endtime=" + endtime +
                ", title='" + title + '\'' +
                ", applypeo='" + applypeo + '\'' +
                ", remarks='" + remarks + '\'' +
                ", status=" + status +
                '}';
    }
}
